﻿#contenthost {
    height: 100%;
    width: 100%;
}

/* Customized controls */
::selection {
   background-color: rgba(160, 0, 0, 1);
}

.win-toggleswitch .win-switch::-ms-fill-lower,
.win-toggleswitch .win-switch:active::-ms-fill-lower,
.win-toggleswitch .win-switch:hover::-ms-fill-lower {
    background-color: rgba(160, 0, 0, 1);
}

select:focus::-ms-value,
select option:checked:active,
select option:checked:not(:active) {
    background-color: rgba(160, 0, 0, 1);
}

    select option:checked:not(:active):hover {
        background-color: rgba(160, 0, 0, 0.8);
    }

button[type=submit] {
    background-color: rgba(160, 0, 0, 1);
}

    button[type=submit]:hover:not(:active):not(:disabled) {
        background-color: rgba(160, 0, 0, 0.8);
    }

/* Header menu */
#headerMenu {
    width: 200px;
}

    #headerMenu:active {
        color: rgba(0, 0, 0, 1);
    }

    #headerMenu button:hover:active:not(:disabled) {
        background-color: rgba(160, 0, 0, 1);
    }

/* AppBar menu */
.win-appbar {
    background-color: rgba(160, 0, 0, 1);
}

    .win-appbar button .win-commandring {
        border-color: rgba(255, 255, 255, 1);
    }

    .win-appbar button:active .win-commandring,
    .win-appbar button:hover:active .win-commandring {
        background-color: rgba(255, 255, 255, 1);
        border-color: rgba(255, 255, 255, 1);
    }

    .win-appbar button:hover .win-commandring {
        background-color: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 1);
    }

    .win-appbar button.win-command .win-label {
        color: rgba(255, 255, 255, 1);
    }

    .win-appbar button .win-commandimage {
        color: rgba(255, 255, 255, 1);
    }

    .win-appbar button:active .win-commandimage,
    .win-appbar button:hover:active .win-commandimage {
        color: rgba(160, 0, 0, 1);
    }

    .win-appbar hr.win-command {
        background-color: rgba(255, 255, 255, 1);
    }

.win-flyout form p {
    margin-top: 0px;
}

.fragment {
    /* Define a grid with rows for a banner and a body */
    -ms-grid-columns: 1fr;
    -ms-grid-rows: 128px 1fr;
    display: -ms-grid;
    height: 100%;
    width: 100%;
}

    .fragment header[role=banner] {
        /* Define a grid with columns for the back button and page title. */
        -ms-grid-columns: 120px 1fr;
        -ms-grid-rows: 1fr;
        display: -ms-grid;
    }

        .fragment header[role=banner] .win-backbutton {
            margin-left: 39px;
            margin-top: 59px;
        }

        .fragment header[role=banner] .titlearea {
            -ms-grid-column: 2;
            margin-top: 37px;
        }

            .fragment header[role=banner] .titlearea:hover {
                color: rgba(160, 0, 0, 0.8);
            }

            .fragment header[role=banner] .titlearea:active {
                color: rgba(160, 0, 0, 0.5);
            }

            .fragment header[role=banner] .titlearea .pagetitle {
                width: calc(100% - 20px);
            }

            .fragment header[role=banner] .titlearea .chevron {
                vertical-align:8px;
            }

    .fragment section[role=main] {
        -ms-grid-row: 2;
        height: 100%;
        width: 100%;
    }

@media screen and (-ms-view-state: snapped) {
    .fragment header[role=banner] {
        -ms-grid-columns: auto 1fr;
        margin-left: 20px;
    }

        .fragment header[role=banner] .win-backbutton {
            margin: 0;
            margin-right: 10px;
            margin-top: 76px;
        }

            .fragment header[role=banner] .win-backbutton:disabled {
                display: none;
            }

        .fragment header[role=banner] .titlearea {
            -ms-grid-column: 2;
            margin-left: 0;
            margin-top: 68px;
        }
}

@media screen and (-ms-view-state: fullscreen-portrait) {
    .fragment header[role=banner] {
        -ms-grid-columns: 100px 1fr;
    }

        .fragment header[role=banner] .win-backbutton {
            margin-left: 29px;
        }
}